//
//  JDPhotoBrowserViewController.swift
//  funcode
//
//  Created by Wan Jiading on 2017/2/16.
//  Copyright © 2017年 WanJiading. All rights reserved.
//

import UIKit
import Kingfisher

class JDPhotoBrowserViewController: UIViewController {

	var imageView: UIImageView!
	var contentView: UIView!
	var titleLabel: UILabel!
	var descriptionLabel: UILabel!
	var totalCountLabel: UILabel!
	var currentLabel: UILabel!
	
    override func viewDidLoad() {
        super.viewDidLoad()

		setupControls()
    }
	
	func setupControls() {
		
		imageView = UIImageView()
		let url = URL(string: "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1487250926049&di=b124bd222a2278433be0b57b7378ef2a&imgtype=0&src=http%3A%2F%2Fm4.biz.itc.cn%2Fpic%2Fnew%2Fn%2F83%2F34%2FImg7513483_n.jpg")
		imageView.kf.setImage(with: url)
		
		self.view.addSubview(imageView)
		imageView.snp.makeConstraints { [unowned self] (make) in
			make.left.equalTo(self.view.snp.left)
			make.right.equalTo(self.view.snp.right)
			make.center.equalTo(self.view.snp.center)
			make.height.equalTo(250)
		}
		
	}

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
	
}
